package com.km.repository;

import com.km.entity.Article;
import com.km.entity.ArticleTags;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * <p></p>
 * Created by zhezhiyong@163.com on 2017/10/14.
 */
public interface ArticleTagsRepository extends JpaRepository<ArticleTags, Long>, JpaSpecificationExecutor<ArticleTags> {

    List<ArticleTags> findByTagsId(Long tagsId);
    void deleteByTagsId(Long tagsId);
}
